<template>
	<view class="wallet-page">
		<view class="container">
			<view class="row">
				<view class="label">{{$t('Page.user.kyye')}}</view>
				<view class="amount">
					<image class="coin-icon" src="@/static/coin.png"></image>
					<text>{{userMoney}}</text>
				</view>
			</view>
			<!-- 
			<view class="row">
				<view class="label">Total Assert:</view>
				<view class="amount">
					<image class="coin-icon" src="@/static/coin.png"></image>
					<text>0</text>
				</view>
			</view>
			<view class="row">
				<view class="label">Require Bet:</view>
				<view class="amount">
					<image class="coin-icon" src="@/static/coin.png"></image>
					<text>0</text>
				</view>
			</view>
			<view class="row">
				<view class="label">Commission:</view>
				<view class="amount">
					<image class="coin-icon" src="@/static/coin.png"></image>
					<text>0</text>
				</view>
			</view>
			<view class="row">
				<view class="label">Bonus:</view>
				<view class="amount">
					<image class="coin-icon" src="@/static/coin.png"></image>
					<text>3213230</text>
				</view>
			</view>
 -->
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	export default {
		data() {
			return {}
		},
		computed: {
			...mapState({
				userMoney: state => state.app.userMoney
			}),
		},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	.wallet-page {
		width: 100%;

		.container {
			width: calc(100% - 48px);
			margin: 0 auto;
			box-sizing: border-box;

			.row {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin: 16px 0;

				.amount {
					display: flex;
					align-items: center;
				}
			}

			.coin-icon {
				width: 30px;
				height: 30px;
				margin: 0 5px;
			}
		}
	}
</style>